<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<html>
<head>
    <title></title>
    <base href="<%=basePath%>" />
    <script type="text/javascript">
      function register(){
          var gform=document.getElementById("registerf");
          gform.action="<%=basePath%>userAction!userRegister.do";
          gform.submit();
      }
      function login(){
          var  gform=document.getElementById("registerf");
          gform.action="<%=basePath%>userAction!userLogin.do";
          gform.submit();
      }
    </script>
    
</head>
<body>
   <form name="registerf" id="registerf" action="<%=basePath%>userAction!userRegister.do" method="post">
       <table>
           <tr>
               <td>用户名：<input type="text" name="user.username" value=""/></td>
               <td>账号：<input type="text" name="user.account" value=""/></td>
               <td>密码：<input type="password" name="user.pwd" value=""/></td>
           </tr>
           <tr>
               <td><input type="submit" value="注册"/></td>
               <td></td>
               <td></td>
           </tr>
       </table>
   </form>

   <a href="javascript:void()" onclick="ecache()">查询所有，缓存测试</a>
   <script type="text/javascript">
     function ecache(){
    	 var uri="<%=basePath%>userAction!getUsers.do?time="
         var time=Math.random();
    	 window.location.href=uri+time;
     }
   </script>
</body>
</html>